/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.atomojo.www.util;

import org.restlet.data.Status;

/**
 *
 * @author alex
 */
public class RequestFailedException extends Exception {
   Status status;
   public RequestFailedException(String message,Status status) {
      super(message);
      this.status = status;
   }
   
   public RequestFailedException(String message,Throwable cause) {
      super(message,cause);
      this.status = null;
   }
   
   public RequestFailedException(String message,Throwable cause,Status status) {
      super(message,cause);
      this.status = status;
   }
   
   public Status getStatus() {
      return status;
   }

}
